#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class QextSerialEnumerator;

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

public Q_SLOTS:
    void on_kpLineEdit_editingFinished();
    void on_kiLineEdit_editingFinished();
    void on_kdLineEdit_editingFinished();
    void on_targetLineEdit_editingFinished();
    void on_closeButton_clicked();
    void on_openButton_clicked();
    void on_flushButton_clicked();
    void onSrialPortStateChanged(int state);

private:
    Ui::MainWindow *ui;
    QextSerialEnumerator *m_enumerator;
};
#endif // MAINWINDOW_H
